
import com.itheima.service.IAccountService;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;

import java.util.Date;


public class Client {

    public static void main(String[] args) {

        ClassPathXmlApplicationContext ac=new ClassPathXmlApplicationContext("bean.xml");
        IAccountService as1= (IAccountService) ac.getBean("accountService");
        as1.saveAccount();

    }
}
